const abc = {
    state: {
        exception: {
            403: '抱歉，你无权访问该页面',
            404: '抱歉，你访问的页面不存在',
            500: '抱歉，服务器出错了',
            backToHome: '返回首页'
        },
        //菜单
        menu:[] as Array<any>
    },
    mutations: {
        //添加菜单
        addmenu(state:any,menu:Array<any>){
            state.menu = menu
        },
        //清除菜单
        clearmenu(state:any){
            state.menu = []
        },
        //根据URL设置菜单 _open 属性（_open用于是否展开菜单的条件值）
        openedByUrl(state:any,url:string){

        },
        //根据url获取菜单列表
        getPathByUrl(state:any,url:string){

        }
    }
}


export default abc